package com.cloudpivot.receivales.contract.service;

import com.cloudpivot.receivales.contract.entity.erpcontract.CrmContractPull;
import com.cloudpivot.receivales.contract.domain.crmcontract.CrmContract;
import com.cloudpivot.receivales.contract.domain.oa.OAContract;

import java.util.List;

/**
 * oa 转 crm,u8 数据库 转 crm
 */
public interface OAEntityToCrmEntity {
    /**
     * 从u8数据库传入crm
     * @return
     */
    CrmContract toConvertEntityByU8(List<CrmContractPull> entitys,String version);

    /**
     * 直接从oa传入crm
     * @return
     */
    CrmContract toConvertEntityByOA(OAContract oaContract);
}
